package com.sourny.auth.consts;

import org.apache.tomcat.websocket.Constants;

/**
 * 常量
 * @author sourny.yang
 * @date 9:29 2018/6/8
 */
public class SecurityAuthConst {
    public static final String AUTHORIZATION = Constants.AUTHORIZATION_HEADER_NAME;
    /**
     * token刷新时间
     */
    public final static long REFRESH_TIME = 60 * 1000 * 1;
    /**
     * token有效时间
     */
    public final static int EFFECTIVE_TIME = 60 * 1000 * 5;
    /**
     * token在redis的前缀
     */
    public final static String AUTH_TOKEN = "auth_token";
    /**
     * token在redis的储存分区
     */
    public final static String SECURITY_AUTH_STORE_REGION_KEY = "security_auth_region";
}
